package cn.njxzc.examples;

import java.util.Vector;
import java.util.Enumeration;

public class Exam8_15 {

	@SuppressWarnings({ "rawtypes", "unchecked" })
	public static void main(String[] args) {

		Vector v = new Vector();

		v.addElement("元素1");

		v.addElement("元素2");

		v.addElement("元素3");

		Enumeration e = v.elements();

		while (e.hasMoreElements())

			System.out.println(e.nextElement());

	}

}